package homework;

import java.util.Date;

public class DateTime {
    public static void main(String[] args) {
        Date date=new Date();
        System.out.println("当前的北京时间为：");
        System.out.println(date);
        Date parisDate = new Date(date.getTime()-7*60*60*1000);
        System.out.println("此刻的巴黎时间为： " );
        System.out.println(parisDate);
        Date newYorkDate = new Date(date.getTime()-12*60*60*1000);
        System.out.println("此刻的纽约时间为： ");
        System.out.println(newYorkDate);
    }
}
